package service.impl;

import java.util.List;

import javax.swing.text.html.parser.Entity;

import dao.UserDao;
import dao.impl.UserDaoImpl;
import entity.UserEntity;
import service.TestService;

public class UserServiceImpl implements TestService {
	private UserDao userDao=new UserDaoImpl();

	@Override
	public void add(UserEntity userName) {
		userDao.add(userName);
		
	}

	@Override
	public void delete(Long id) {
		userDao.delete(id);
		
	}

	@Override
	public void update(UserEntity userName) {
		userDao.update(userName);
		
	}

	@Override
	public List<UserEntity> listAll() {
		
		return userDao.listAll();
	}

	@Override
	public UserEntity getById(Long id) {
		
		return userDao.getById(id);
	}
	
}
